package com.tour.sic.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @program: SIC
 * @description: 实体层 和数据库的表一一对应
 * @author: team
 * @create: 2021-04-22 16:25:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    private Integer id;
    private Integer sid;
    private Integer uid;
    private Integer count; //人数
    private Integer money; // 应付款
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date; // 下单时间
    private String state; // 付款状态
}